<?php $address_format = $form->getObject() ?>
<h1><?php echo $address_format->isNew() ?  __("New ") : __("Edit ") ?> <?php echo __("Addressformat") ?></h1>

<form action="<?php echo url_for('addressformat/update'.(!$address_format->isNew() ? '?address_format_id='.$address_format->getAddressFormatId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          &nbsp;<a href="<?php echo url_for('addressformat/index') ?>"><?php echo __("Cancel") ?></a>
          <?php if (!$address_format->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'addressformat/delete?address_format_id='.$address_format->getAddressFormatId(), array('post' => true, 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?>
          <input type="submit" value=<?php echo __("Save") ?> />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['address_format']->renderLabel() ?></th>
        <td>
          <?php echo $form['address_format']->renderError() ?>
          <?php echo $form['address_format'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['address_summary']->renderLabel() ?></th>
        <td>
          <?php echo $form['address_summary']->renderError() ?>
          <?php echo $form['address_summary'] ?>

        <?php echo $form['address_format_id'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
